import {createStore} from 'redux';

function productReduer(state={products:[],shoppingCar:{items:[]}},action){
    switch(action.type){
        case 'PRODUCT':
            return {...state,products:[...state.products,action.product]};
    }
}

let store=createStore(productReduer);
export default store
